package com.company.tips.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("page/")
public class IndexController {
	@RequestMapping(value = "tips/index", method = RequestMethod.GET)
	public ModelAndView index() {
		System.err.println("redirect to index page");
		ModelAndView model = new ModelAndView();
		model.setViewName("page/tips/index");
		return model;
	}
}
